package week8;

public class Bicycle extends Transport{
    private boolean Gear;
    public Bicycle(String name,int speed,boolean Gear) {
        super(name, speed);
        this.Gear = Gear;
    }

    @Override
    public void showBasicInfo() {
        super.showBasicInfo();
        System.out.println(name+Gear+"齿轮");
    }
}
